import request from '@/utils/request'

// 查询病人取药列表
export function listPatient_drug(query) {
  return request({
    url: '/patient_drug/patient_drug/list',
    method: 'get',
    params: query
  })
}

// 查询病人取药详细
export function getPatient_drug(takeId) {
  return request({
    url: '/patient_drug/patient_drug/' + takeId,
    method: 'get'
  })
}

// 新增病人取药
export function addPatient_drug(data) {
  return request({
    url: '/patient_drug/patient_drug',
    method: 'post',
    data: data
  })
}

// 修改病人取药
export function updatePatient_drug(data) {
  return request({
    url: '/patient_drug/patient_drug',
    method: 'put',
    data: data
  })
}

// 删除病人取药
export function delPatient_drug(takeId) {
  return request({
    url: '/patient_drug/patient_drug/' + takeId,
    method: 'delete'
  })
}
